<form id="pagerForm" method="post" action="product_chose.php?oid=<{$smarty.get.oid}>" onsubmit="return dwzSearch(this, 'dialog');">
	<input type="hidden" name="pageNum" value="<{$page.nowPage}>" />
	<input type="hidden" name="numPerPage" value="<{$page.num}>" />
	<input type="hidden" name="orderField" value="${param.orderField}" /><!--查询排序字段名-->
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" /><!--排序方式-->
</form>
<script type="text/javascript">
	$(function(){
		$(".mysearch").click(function(){
			$("#mysearch1").submit();
		})
	})

	$("[name=province]").change(function(){
		var upid=$(this).val();
		$.post(
			'ajax.php?action=getCity',
			{upid:upid},
			function(data){
				if(data){
					$("[name=city]").html(data);
				}
			})
	})
	$("[name=city]").change(function(){
		var upid=$(this).val();
		$.post(
			'ajax.php?action=getCounty',
			{upid:upid},
			function(data){
				if(data){
					$("[name=county]").html(data);
				}
			})
	})
</script>

<div class="pageHeader" style="display: ;">

	<form rel="" id="mysearch1" onsubmit="return dwzSearch(this,'dialog');" action="<{$page_basename}>?oid=<{$smarty.get.oid}>" method="post">
		  
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						<label>商品名称：</label>
						<select class="" name="goods_id">
							<option value="">请选择</option>
							<{foreach item=res from=$goods}>
							<option <{if $res.id==$search.goods_id}>selected="selected"<{/if}> value="<{$res.id}>"><{$res.goods_name}></option>
							<{/foreach}>
						</select>
					</td>
					
					<td>
						<div class="subBar">
							<ul>
								<li><div class="buttonActive"><div class="buttonContent"><button class="mysearch" type="button">检索</button></div></div></li>
							</ul>
			            </div>
					</td>
				</tr>
			</table>	
		</div>

	</form>
</div>
<form method="post" action="<{$page_basename}>?oid=<{$smarty.get.oid}>" class="pageForm required-validate" onsubmit="return iframeCallback(this, dialogAjaxDone);">
<div class="pageContent">
	<!-- <div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="admin_add.php" target="navTab" width="577" height="300" rel="addvisit"><span>添加</span></a></li>
			
		</ul>
	</div> -->
	<table class="table" width="100%" layoutH="160">
		<thead>
			<tr>		
				<th align="center" style="width:5%;" ><{if $inputType=='checkbox'}><input type="checkbox" group="pid[]" class="checkboxCtrl"><{/if}></th>	
				<th align="center" style="width:10%;" >商品名称</th>
				<th align="center" style="width:10%;" >规格</th>
				<th align="center" style="width:15%;" >价格</th>
				<th align="center" style="width:15%;" >库存</th>
				<th align="center" style="width:10%;" >上下架</th>
				
				
			</tr>
		</thead>
		<tbody>
			<{foreach item=res from=$products}>
				<tr target="id" rel="<{$res.id}>">
					<td><input name="pid[]" value="<{$res.id}>" type="<{$inputType}>"></td>
					<td><{$res.goods_name}></td>
					<td><{$res.product_name}></td>
					<td><{$res.price}></td>
					<td><{$res.inventory}></td>
					<td><{$res.shelfType}></td>
					
					<!-- <td>
						<a target="navTab" href="partner_veiw.php?id=<{$res.partner_id}>" width="577" height="300" rel="look" mask="true"><span>查看</span></a>
						|
						<a target="navTab" href="partner_add.php?id=<{$res.partner_id}>" width="577" height="300" rel="updatevisit"><span>修改</span></a>
						
					</td> -->
				</tr>
			<{/foreach}>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" <{if $page.num==20}>selected="selected"<{/if}>>20</option>
				<option value="50" <{if $page.num=='50'}>selected="selected"<{/if}>>50</option>
				<option value="100" <{if $page.num=='100'}>selected="selected"<{/if}>>100</option>
				<option value="200" <{if $page.num=='200'}>selected="selected"<{/if}>>200</option>
			</select>
			<span>条，共<{$page.total}>条</span>	
			
		</div>
		<div class="pagination" targetType="dialog"  totalCount="<{$page.total}>" numPerPage="<{$page.num}>" pageNumShown="10" currentPage="<{$page.nowPage}>"></div>
	</div>
	<div class="formBar">
		<ul style="float:left;">
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
			<li>
				<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
			</li>
		</ul>
	</div>
</div>
<input name="submit" value="submit" type="hidden">
</form>